package com.heima.wemedia.service;

import com.baomidou.mybatisplus.extension.service.IService;
import com.heima.model.common.dtos.ResponseResult;
import com.heima.model.wemedia.dtos.WmChannelSaveDto;
import com.heima.model.wemedia.dtos.WmSensitiveChannelPageDto;
import com.heima.model.wemedia.pojos.WmChannel;

public interface WmChannelService extends IService<WmChannel> {

    /**
     * 获取所有频道列表
     * @return
     */
    ResponseResult channels();

    /**
     * 频道列表显示
     * @param wmSensitiveChannelPageDto
     * @return
     */
    ResponseResult channelList(WmSensitiveChannelPageDto wmSensitiveChannelPageDto);

    /**
     * 频道保存
     * @param dto
     * @return
     */
    ResponseResult channelSave(WmChannel dto);

    /**
     * 频道新增
     * @param wmChannel
     * @return
     */
    ResponseResult channelUpdate(WmChannel wmChannel);

    /**
     * 删除频道
     * @param id
     * @return
     */
    ResponseResult del(Integer id);
}
